<?php
/**
 * Enter description here...
 *
 * 
 */



define('G_BIN_CHECK_INCLUDE', 1);
include "common.inc.php";

$key = $G_REQUEST_AUTH_OBJ -> regPriKey();
$rstr = $G_REQUEST_AUTH_OBJ -> setVerifyKey();
$G_REQUEST_AUTH_OBJ -> outputCookie();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<script type="text/javascript">
			document.domain = "<?php echo G_CURRENT_DOMAIN; ?>"
            parent.safeExecGLS(function()
			{
				parent.jQuery.cookie("RCS", "<?php echo md5($key.$rstr); ?>", {"path":"/", "domain":"<?php echo G_CURRENT_DOMAIN; ?>"})
				parent.getLocalStorageObj().setItem("CMK", "<?php echo $key; ?>");
				parent.loadAuthComplete();
			})
		</script>
	</head>
	<body></body>
</html>